import React from 'react'
import { Outlet, NavLink } from 'react-router-dom'
export default function Home() {
  return (
    <div>
      <h1>首页</h1>
      <NavLink to="/home/test1">Test1</NavLink> &nbsp;
      <NavLink to="/home/test2">Test2</NavLink>
      <hr />
      {/* Home组件里面的嵌套路由,就会渲染到Outlet的位置 */}
      <Outlet></Outlet>
    </div>
  )
}
